package demo4;

/**
 * @author Huangjin
 * @version 1.0
 * describe:
 * @date 2023/2/24 17:36
 */
public class Master {
    void feed(Animal animal){
        animal.eat();
        animal.drink();
    }

    void feed(Dog dog){
        dog.eat();
    }
    void feed(Fish fish){
        fish.eat();
    }
    void feed(Chick chick){
        chick.eat();
    }
}
